package main

import (
	"image/color"

	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/canvas"
)

func main() {
	// 创建app
	myApp := app.New()
	window := myApp.NewWindow("Canvas test")
	myCanvas := window.Canvas()

	text := canvas.NewText("Text", color.White)
	text.TextStyle.Bold = true
	myCanvas.SetContent(text)

	window.ShowAndRun()

}
